package edu.bw.dto;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import edu.bw.utils.PermissionsDeserializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class UpdateRoleForm {

    private Integer id;

    private String roleName;

    //序列化：将java对象转成json数据
    //反序列化：将json数据转成java对象
    @JsonDeserialize(using = PermissionsDeserializer.class)
    private String permissions;
    //private List<Integer>permissions
    private String desc;
}
